<?php
/* 
* @Author: Jerry-chen
* @Date:   2014-07-08 00:43:58
* @Last Modified time: 2014-07-12 22:58:35
* @Last Modified by: Jerry-chen<uranusbill@163.com>
* @ Copyright (c) 2014 http://www.cooldreamer.com All rightsreserved.
*/
class AttrModel extends Model
{
	public $table = 'attr';
	
	/**
	 * [ 添加属性]
	 */
	public function add_(){

		return $this->add();
	}
	/**
	 * [get_all 根据WHERE条件，查找出数据]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function get_all($where)
	{
		return $this->where($where)->all();
	}

	/**
	 * [del_ 删除数据]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function delite_($where)
	{
		$this->where($where)->del();
	}
	/**
	 * [edit_ 修改]
	 * @return [type] [description]
	 */
	public function edit_($where)
	{
		$this->where($where)->save();
	}
}

?>
